<div class="divmain">
<table width="100%" id="fmfrmreportcurrent_tblinfo" class="tblInfo">
<tr>
<td valign="top" class="width25">
<div>
<table class="info" id="fmfrmreportcurrent_tblcondition">
<tr >
<td >
<div id="fmfrmreportcurrent_divleft" class="divleft width100"> 
<table class="width100" id="fmfrmreportcurrent_summaryrevenue" style="background-color:transparent">

<tr style="border-bottom:thin solid #000000;"><td width="40%" style="text-align:right;border-bottom:thin solid #000000;">Gửi sms doanh thu:</td><td style="text-align:right;border-bottom:thin solid #000000;" >
 <button id="fmfrmreportcurrent_smsSend" class="smsSend width100" onclick="fmfrmreportcurrent_smsSend();" type="button"> Gửi </button>
</td></tr>

<tr>
<td colspan="2">
Thông tin ngày hiện tại
</td> 
</tr>
<tr ><td class="width50">Số lượt thuê:</td><td id="fmfrmreportcurrent_numrent" class="cls_summary"></td></tr>
<tr><td class="width50">Thời gian thuê:</td><td id="fmfrmreportcurrent_timerent" class="cls_summary"></td></tr>
<tr><td>Tiền thuê:</td><td id="fmfrmreportcurrent_moneyrent" class="cls_summary"></td></tr>
<tr><td>Tiền sản phẩm:</td><td id="fmfrmreportcurrent_moneyproduct" class="cls_summary"></td></tr>
<tr><td>Giảm phát sinh:</td><td id="fmfrmreportcurrent_moneyarising" class="cls_summary"></td></tr>
<tr><td>Số lượng voucher:</td><td id="fmfrmreportcurrent_numvoucher" class="cls_summary"></td></tr>
<tr><td>KM + Voucher:</td><td id="fmfrmreportcurrent_moneypromo" class="cls_summary"></td></tr>
<tr><td>Khoản thu khác:</td><td id="fmfrmreportcurrent_moneyget" class="cls_summary"></td></tr>
<tr><td>Khoản chi:</td><td id="fmfrmreportcurrent_moneypay" class="cls_summary"></td></tr>
<tr><td>Doanh thu:</td><td id="fmfrmreportcurrent_revenue" class="cls_summary"></td></tr> 

</table>

</div>
       <div class="divactionbuton">

        <button id="fmfrmreportcurrent_create" class="bntreport" onclick="fmfrmreportcurrent_createReport();" type="button"> Xem </button>
        </div>
</td>
</tr>
<tr>
<td>

<!--<button id="fmfrmreportcurrent_create" class="search" onclick="fmfrmreportcurrent_createReport();" type="button"> Xem </button> -->
</td>
</tr>
</table>
</div>
</td>
<td class="clsmiddle"></td>

<td width="80%" height="400" valign="top">
<div class="divGrid" id="fmfrmreportcurrent_divGrid">

</div>
<div  id="fmfrmreportcurrent_divsms"  style="width:400px" align="center">
<table class="width100">
<tr>
<td style="text-align:right">(Các) số điện thoại :
</td>
<td><input id="fmfrmreportcurrent_txtphonenumber" title="Nhập danh sách số điện thoại nhận tin nhắn này, các số điện thoại phải cách nhau dấu';'" maxlength="50" type="text" class="width100"/>
</td>
</tr>
</table>
<div id="fmfrmreportcurrent_divsmscontent">
</div>
</div>
</td>
<td class="clsend"></td>
</tr>
</table>
</div>

 <script language="javascript">
 changeWaiting(0); 
 var fmfrmreportcurrent_smscontent = '' ; 
 $(document).ready(function () {
    initForm('fmfrmreportcurrent_tblinfo'); 
    initDivleft();
     $('#fmfrmreportcurrent_divsms').dialog({
        autoOpen: false,
        title: 'Gửi thông tin doanh thu',
        modal:true,
        width: 600,
        resizable: true,
        overflow: 'auto'
    });    
});

function fmfrmreportcurrent_createReport(){
 changeWaiting(0);
 xajax_fmfrmreportcurrent_load();
 xajax_fmfrmreportcurrent_loadRevenue();  
}

function fmfrmreportcurrent_smsSend(){
    if(checkStatusSMS()){     
       $('#fmfrmreportcurrent_divsms').dialog('open');  
    }
}

function fmfrmreportcurrent_confirm(){ 

   var $phonenumber = $('#fmfrmreportcurrent_txtphonenumber').val(); 
   if(!checkListPhone($phonenumber,true)){
      $('#fmfrmreportcurrent_txtphonenumber').focus();
          return; 
   }   
   xajax_fmfrmreportcurrent_saveSMS($phonenumber,fmfrmreportcurrent_smscontent);   
}
changeWaiting(0);
fmfrmreportcurrent_createReport();
xajax_fmfrmreportcurrent_setPhonenumber();  

 </script>

